<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular.js"></script>
    <title></title>
</head>
<body>
<div  ng-app="myApp" ng-controller="myCrol">
    <p>{{user.name}}</p>
    <button  ng-click="aa()">aa</button>
    <button  ng-click="bb()">bb</button>
</div>
<script>
  var app = new angular.module('myApp',[]);
    app.controller('myCrol',function($scope,$http,$timeout){
        console.log($http);

        $scope.user={name:"原来的"}

        $scope.aa = function(){
            $scope.user.name="aa"


        }
        $scope.bb = function(){
            $scope.user.name="bb"
        }
    })
</script>
</body>
</html>